import React from 'react'

class TodolistItem extends React.Component{
    constructor(props){
        super(props)
    }
    render(){
        return <div onClick={this.myhandleclick.bind(this)}><li key={this.props.index}>{this.props.content}</li></div>
    }
    myhandleclick(){
        console.log(this.props.deleteItem)
        console.log(this.props.index)
        this.props.deleteItem(this.props.index)
    }
}

export default TodolistItem
